﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Task1();
        }
        static void Task1()
        {
            int max = Int32.MinValue;
            int[] array = new int[5];

            for (int i = 0; i < 5; i++)
            {
                Console.Write("[{0}]: ", i);
                array[i] = Int32.Parse(Console.ReadLine());
                if (array[i] > max)
                {
                    max = array[i];
                }
            }
            for (int i = 0; i < 5; i++)
            {
                Console.WriteLine(array[i]);
            }
            Console.WriteLine(max);

        }
        static void Task3()
        {
            Console.WriteLine("Input arrays size");
            int arraySize = Int32.Parse(Console.ReadLine());
            int[] taskArray = new int[arraySize];
            int maxValue = Int32.MinValue;
            int
        




}
    }
}

